package com.geek.javase.ch18.videodemo.pattern.proxy.jdk;

public class Test {
    public static void main(String[] args) {
        //目标对象
        IService target = new BankService();
        //代理对象
        IService proxy = new DynamicProxyBankLogService(target).getProxy();
        //执行登录方法
        proxy.login(1L, "123");
    }

}
